Skip to main content

Upload

AutomatR.GoogleDrive.Activities.Upload

The "Upload" activity in AutomatR is part of the Google Drive activities package, allowing automation processes to upload files from the local drive to a specified folder within the Google Drive user's account. This activity streamlines the process of uploading files, enhancing the efficiency of automation workflows.

Properties

NameDescription
Input
Upload File PathSpecifies the path of the file on your local drive that needs to be uploaded to Google Drive. It should include the file name and path (e.g., "D:\myfiles\uploadthis\1.txt"). String variables containing the file path.
Folder Name Or PathSpecifies the folder name or path on Google Drive where the file should be uploaded. It represents the location within Google Drive. String variables containing the folder name or path.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Upload" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. For example, if the delay is 1000 milliseconds or 1 sec, set it to 1.
Output
ResultOutputs the result of the "Upload" operation, indicating whether the file upload was successful or encountered any errors. Variables of relevant types (e.g., Boolean variables) to store the operation result.

How to use:

  1. Drag and drop the "Upload" activity onto the workflow.
  2. Configure the properties by specifying the local file path and the folder name or path within Google Drive.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to upload the specified file to the specified folder on Google Drive.

Example: Consider an example where the "Upload" activity is used to upload a file named "1.txt" from the local drive to a folder named "Uploadhere" within Google Drive:

Upload:
Display Name: "Upload Text File"
Upload File Path: "D:\\myfiles\\uploadthis\\1.txt"
Folder Name Or Path: "Root\\Uploadhere"
Result: isUploadSuccessful

In this example, the activity uploads the "1.txt" file to the "Uploadhere" folder within Google Drive. The result of the operation (success or failure) is stored in the Boolean variable "isUploadSuccessful" for further handling in the workflow.